#-------------------------------------------------
#
# Project created by QtCreator 2011-04-06T14:22:55
#
#-------------------------------------------------

QT       += core gui opengl


win32 {
    CUDA_PATH = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v4.0/bin/nvcc.exe"
}

unix {
  # auto-detect CUDA path
  CUDA_PATH = $$system(which nvcc)
}

exists($$CUDA_PATH) {
    DEFINES += HAVE_CUDA
    message("Found CUDA")
}



TARGET = FaceRecognition
TEMPLATE = app
unix:QMAKE_CXXFLAGS += -fopenmp

unix:INCLUDEPATH += /usr/local/include/opencv
win32:INCLUDEPATH += C:/Libs/OpenCV2.3/build/include

SOURCES += main.cpp\
        MainWindow.cpp \
    DisplayWidget.cpp \
    Capturer.cpp \
    ObjectDetector.cpp \
    FaceDetector.cpp \
    ImageUtility.cpp \
    Face.cpp \
    Mask.cpp

HEADERS  += MainWindow.h \
    DisplayWidget.h \
    Capturer.h \
    ObjectDetector.h \
    FaceDetector.h \
    ImageUtility.h \
    Face.h \
    Mask.h

FORMS    += MainWindow.ui \
    DisplayWidget.ui


unix:LIBS += -L/usr/local/lib
win32:LIBS += -LC:/Libs/OpenCV2.3/build/lib

unix:LIBS += -lopencv_imgproc -lopencv_core \
        -lopencv_video -lopencv_highgui -lopencv_objdetect \
        -lopencv_gpu -lgomp

win32:LIBS += -lopencv_imgproc230d -lopencv_core230d \
        -lopencv_video230d -lopencv_highgui230d -lopencv_objdetect230d \
        -lopencv_gpu230d

RESOURCES += \
    resources.qrc
